package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.ConsociationCompanyDayCntDao;
import com.cntcdt.api.db.model.ConsociationCompanyDayCntModel;
import com.cntcdt.api.service.ConsociationCompanyDayCntService;

public class ConsociationCompanyDayCntServiceImpl implements
		ConsociationCompanyDayCntService {

	@Override
	public ConsociationCompanyDayCntModel findByYesterday(String consociationCompanyId,int shopId) {
		return ConsociationCompanyDayCntDao.getInstance().findByYesterday(consociationCompanyId, shopId);
	}

	@Override
	public List<ConsociationCompanyDayCntModel> findByThisMonth(String consociationCompanyId,int shopId) {
		return ConsociationCompanyDayCntDao.getInstance().findByThisMonth(consociationCompanyId, shopId);
	}

	@Override
	public List<ConsociationCompanyDayCntModel> findByLastSevenDayData(String consociationCompanyId,int shopId) {
		return ConsociationCompanyDayCntDao.getInstance().findByLastSevenDayData(consociationCompanyId, shopId);
	}

	@Override
	public List<ConsociationCompanyDayCntModel> findBySortTime(String consociationCompanyId, int shopId, long sortTime) {
		return ConsociationCompanyDayCntDao.getInstance().findBySortTime(consociationCompanyId, shopId,sortTime);
	}

	@Override
	public List<ConsociationCompanyDayCntModel> findByYesterday2(String consociationCompanyId,String dataTime) {
		return ConsociationCompanyDayCntDao.getInstance().findByYesterday2(consociationCompanyId,dataTime);
	}

	@Override
	public List<ConsociationCompanyDayCntModel> findByThisMonth2(String consociationCompanyId) {
		return ConsociationCompanyDayCntDao.getInstance().findByThisMonth2(consociationCompanyId);
	}

	@Override
	public List<ConsociationCompanyDayCntModel> findByDayNum(Integer dayNum,String terminal) {
		return ConsociationCompanyDayCntDao.getInstance().findByDayNum(dayNum,terminal);
	}

}
